@extends('manager._layouts.default')
 
@section('main')
 
    <h2>Create new jobs</h2>
 
    {{ Form::open(array('route' => 'manager.jobs.store')) }}
        <div class="row">
            <div class="row col-lg-12">
                <div class="form-group col-lg-9">
                    <label for="title">Job Title</label>
                    <input type="text" id="title" name="title" value="" class="newproject form-control">
                </div>
                <div class="form-group col-lg-3">
                    <label for="slug">Slug</label>
                    <i class="fa fa-fw fa-question-circle help" data-toggle="popover" data-placement="right" data-trigger="hover" data-content="This is the friendly URL of the page" data-container="body"></i>
                    <input type="text" id="slug" name="slug" value="" class="form-control">
                </div>
            </div> 
        </div>

		<div class="row">
            <div class="row col-lg-12">
                <div class="form-group col-lg-9">
	                <label for="position">Position</label>
	                <input type="text" id="position" name="position" value="" class="form-control">
                </div>
	            <div class="form-group col-lg-3">
		            <label for="jobtypeid">Job Type</label>
		            {{ Form::select('jobtypeid', $jobtypes, null, array("class"=>"form-control input-sm")) }}
	            </div>
            </div>
		</div>

		<div class="row">
            <div class="row col-lg-12">
                <div class="form-group col-lg-6">
	                <label for="location">Location</label>
	                <input type="text" id="location" name="location" value="" class="form-control">
                </div>
	            <div class="form-group col-lg-6">
		            <label for="salary">Salary</label>
		            <input type="text" id="salary" name="salary" value="" class="form-control">
	            </div>
            </div>
		</div>

        <ul class="nav nav-tabs">
            <li class="active"><a href="#content" data-toggle="tab">Content</a></li>
            <li><a href="#files" data-toggle="tab">Files</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="content">
                <label for="job-body">Full Job Description</label>
                <textarea name="description" id="job-body-editor" class="form-control"></textarea>
            </div>
            <div class="tab-pane" id="files">
                <p>Please save the job before uploading any files</p>
            </div>
        </div>

        
        <div class="row">
            <div class="col-lg-12">
                <button type="submit" class="btn btn-primary btn-large">Save</button>
                <a href="{{ URL::route('manager.jobs.index') }}" class="btn btn-default btn-large">Cancel</a>
            </div>        
            
        </div>
 
    {{ Form::close() }}
 
@stop